var mongoose = require('mongoose');
mongoose.connect('mongodb://localhost/Student')
var Schema=mongoose.Schema
var Student=new Schema({
    name:String,
    sex:{
        type:Number,
        enum:[0,1],
        default:0
    },
    age:Number,
    habbies:{
        type:String,
        require:true
    }
})
module.exports=mongoose.model('Student',Student)

